{% load static %}
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <link rel="stylesheet" href="{% static 'plugins/bootstrap-3.4.1/css/bootstrap.css' %}">
    <style>
        .account {
            width: 400px;
            margin: 0 auto ;
        }
        h1{
            text-align: center;
        }
    </style>
</head>
<body>
<div class="account">
<h1>注册</h1>
<form>
    {% for field in form %}
        {% if field.name == 'code' %}
        <div>
           <div class="form-group">
                <label for="{{ field.id_for_label }}">{{ field.label }}</label>
                <div>
                    <div class="clearfix">
                        <div class="col-md-6">{{ field }}</div>
                        <div class="col-md-6">
                            <input type="button" class="btn btn-default" value="点击获取验证码">
                        </div>
                    </div>
                </div>
            </div>
        </div>
        {% else %}
            <div class="form-group">
                <label for="{{ field.id_for_label }}">{{ field.label }}</label>
                {{ field }}
            </div>
        {% endif %}
    {% endfor %}
</form>
</div>

</body>
</html>